// const joi = require('@hapi/joi')
const joi = require("joi");
// 密码的验证规则
const oldPassword = joi.string().pattern(/^[\S]{6,12}$/).min(6).max(12).required();
const newPassword = joi.string().pattern(/^[\S]{6,12}$/).min(6).max(12).required();
const id =  joi.required();
const name = joi.string().required();
const sex = joi.string().valid('男', '女').required();
const email = joi.string().email().required()


